﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using System.Threading;

namespace QLTV.Forms
{
    public partial class frmBanLamViec : DevExpress.XtraEditors.XtraForm
    {
        public frmBanLamViec()
        {
            InitializeComponent();
        }
        frmPleaseWait _wait;
        private void frmBanLamViec_Load(object sender, EventArgs e)
        {
       
            Thread lengthyProcessThread = new Thread(loadData) { IsBackground = true };
            lengthyProcessThread.Start();
            _wait = new frmPleaseWait();
            _wait.ShowDialog();
        }
        private void loadData()
        {
            // TODO: This line of code loads data into the 'dsChart.tblMarital' table. You can move, or remove it, as needed.
            this.tblMaritalTableAdapter.Fill(this.dsChart.tblMarital);
            // TODO: This line of code loads data into the 'dsChart.tblSex' table. You can move, or remove it, as needed.
            this.tblSexTableAdapter.Fill(this.dsChart.tblSex);
            // TODO: This line of code loads data into the 'dsChart.tblAge' table. You can move, or remove it, as needed.
            this.tblAgeTableAdapter.Fill(this.dsChart.tblAge);
            // TODO: This line of code loads data into the 'dsChart.tblAge' table. You can move, or remove it, as needed.
            this.tblAgeTableAdapter.Fill(this.dsChart.tblAge);
            // TODO: This line of code loads data into the 'dsChart.tblRank' table. You can move, or remove it, as needed.
            this.tblRankTableAdapter.Fill(this.dsChart.tblRank);  
            // TODO: This line of code loads data into the 'dsTongQuan.tblCrew' table. You can move, or remove it, as needed.
            this.tblCrewTableAdapter.Fill(this.dsTongQuan.tblCrew);
            _wait.ShouldCloseNow = true;
        }

        private void chartControl1_Click(object sender, EventArgs e)
        {

        }
    }
}